package lab02.Triangle;

import java.util.Scanner;

/**
 * Created by lenovo on 2017/10/14.
 */
public class Circle {
    //属性
    double ru, perimeter, area;

    //行为
     Circle(double r){
     ru=r;
     area=Math.PI*r*r;
     perimeter=Math.PI*r*2;
     }
     double getPerimeter(){
         return perimeter;

     }
     double getArea(){
         return  area;
     }
     //函数

}


